package com.treeroot.controller;

import com.treeroot.entity.MessageEntity;
import lombok.extern.slf4j.Slf4j;
import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "fanout_sms_queue")
@Slf4j
public class FanoutSMSConsumer {
    @RabbitHandler
    public void process(MessageEntity msg) {
      log.info ("sms fanout 接收到消息{}：" + msg);
    }

}
